import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:yt_devops/resources/resources.dart';
import 'package:yt_devops/resources/str_res_keys.dart';
import 'package:yt_devops/styles/styles.dart';

/**
 *
 * @Description TODO
 * @Author liuer
 * @CreateTime 2023年12月29日 10:05
 */
class ObserverPointNoData extends StatelessWidget {
  double topPosition = 0;

  ObserverPointNoData({
    super.key,
    required this.topPosition,
  });

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisSize: MainAxisSize.max,
      children: <Widget>[
        SizedBox(
          height: topPosition,
        ),
         const Image(
          image: AssetImage(ImageAssets.observerPointNoData),
          width: 86,
          fit: BoxFit.fitHeight,
        ),
         Padding(
          padding: const EdgeInsets.only(top: 24),
          child: Text(
            ResKey.noData.tr,
            style: const TextStyle(color: Colour.otherTextColor,fontSize: 14),
          ),
        )
      ],
    );
  }
}
